import RequestHttp from './request'
const config = {
  baseURL: '/api',
  // 设置超时时间4s
  timeout: 4000,
  // 跨域时候允许携带凭证
  withCredentials: true
}

const HttpRequestAPI = new RequestHttp({
  ...config
})

export default HttpRequestAPI
